<?php /* Smarty version 2.6.18, created on 2016-12-02 16:03:37
         compiled from grade/grade.list.tpl.php */ ?>
 <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
       <style>
		@media only screen and (max-width: 760px),(min-device-width: 768px) and (max-device-width:1024px)  {
		#mytable, #mytable thead, #mytable tbody, #mytable th, #mytable td, #mytable tr { 
			display: block; 
		}
		#mytable thead tr { 
			position: absolute;
			top: -9999px;
			left: -9999px;
		}
		#mytable td { 
			border: none;
			border-bottom: 1px solid #eee; 
			position: relative;
			padding-left:44% !important; 
			padding-top:10px ;
		}
	    #mytable tr{ margin-bottom:20px;}
		#mytable td:before { 
			position: absolute;
			top:10px;
			left:8px;
			width: 45%; 
			padding-right:10px;
			white-space: nowrap;
		}
		    #mytable td:nth-of-type(1):before { content: "年级名称"; }
			#mytable td:nth-of-type(2):before { content: "年级代码"; }
			#mytable td:nth-of-type(3):before { content: "年级简称"; }
			#mytable td:nth-of-type(4):before { content: "年级数量"; }
			#mytable td:nth-of-type(5):before { content: "操作"; }
        }		
	</style>
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
                <div class="box-header with-border">
                    <span class="fa fa-user-plus" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">年级列表</p>
                    <a href="index.php?a=student.gradeadd" class="btn btn-primary btn-sm" style="float:right; color:#fff;"> 新 增 </a>
                </div>
                <div class="box-body">
                     <table class="table table-bordered table-striped"  id="mytable">
                                <thead>
                                    <tr style="background-color:#fcba4b;">
                                        <td>年级名称</td>
                                        <td>年级简称</td>
                                        <td>年级代码</td>
                                        <td>班级数量</td>
                                        <td width="500">操作</td>
                                    </tr>	
                                </thead>

                                <tbody>
                                <?php $_from = $this->_tpl_vars['grade_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                    <tr>
                                        <td><?php echo $this->_tpl_vars['value']['grade_name']; ?>
</td><!--年级名称-->
                                        <td><?php echo $this->_tpl_vars['value']['grade_xname']; ?>
</td><!--年级简称-->
                                        <td><?php echo $this->_tpl_vars['value']['grade_code']; ?>
</td><!--年级代码-->
                                        <td><?php echo $this->_tpl_vars['value']['class_count']; ?>
</td>
                                        <td>
                                        	  <a href="index.php?a=student.gradeUpdate&grade_id=<?php echo $this->_tpl_vars['value']['grade_id']; ?>
" class="btn btn-warning btn-xs"> 修  改 </a>
                    						  <a href="index.php?a=student.gradedel&grade_id=<?php echo $this->_tpl_vars['value']['grade_id']; ?>
" class="btn btn-danger btn-xs" onclick="if(confirm('警告！确认删除信息?')==false)return false;"> 删  除 </a>
                                              <a href="index.php?a=student.classbatch&grade_id=<?php echo $this->_tpl_vars['value']['grade_id']; ?>
" class="btn btn-primary btn-xs" > 批量生成班级 </a>
											  <a href="index.php?a=student.classAdd&grade_id=<?php echo $this->_tpl_vars['value']['grade_id']; ?>
" class="btn btn-info btn-xs" > 自定义班级 </a>
											  <a href="index.php?a=student.classlist&grade_id=<?php echo $this->_tpl_vars['value']['grade_id']; ?>
" class="btn btn-success btn-xs" > 班级列表 </a>
											  <a href="index.php?a=student.gradeallot&grade_id=<?php echo $this->_tpl_vars['value']['grade_id']; ?>
" class="btn btn-warning btn-xs" > 学科分配 </a>
											  <a href="index.php?a=student.gradeup&grade_id=<?php echo $this->_tpl_vars['value']['grade_id']; ?>
" class="btn btn-primary btn-xs" >升迁 </a>
											  <?php if ($this->_tpl_vars['value']['grade_code'] >= $this->_tpl_vars['grade_max']['grade_code']): ?>
											  <a href="index.php?a=student.gradeups&grade_id=<?php echo $this->_tpl_vars['value']['grade_id']; ?>
" class="btn btn-danger btn-xs" >毕业 </a>
											  <?php endif; ?>
                                        </td>
                                    </tr>	
                              <?php endforeach; endif; unset($_from); ?>
                             </tbody>
                        </table> 
					<?php echo $this->_tpl_vars['page']; ?>

				</div><!--box-body -->
				
           </div><!--box box-default box-solid-->
        </section>   
      </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
 <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 